package com.liangdemo.web.model;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * 用户账户信息
 *
 * @author Mr.Liang
 * @date 2022/4/24 16:51
 */
@Entity
@Data
@Table(name = "account")
public class Account {
    /**
     * 账户编号
     */
    @Id
    @Column(name = "id")
    private String id;
    /**
     * 用户id
     */
    private String userId;
    /**
     * 用户账户
     */
    private String account;
    /**
     * 账号密码
     */
    private String password;
    /**
     * 用户手机号
     */
    private String phone;
    /**
     * 用户邮箱
     */
    private String email;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    /**
     * 修改时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;


}
